package com.lindroy.jetpacknotes

import android.app.Application
import androidx.lifecycle.ProcessLifecycleOwner
import com.lindroy.jetpacknotes.lifecycle.lifecycle_process.ApplicationLifecycleObserver
import dagger.hilt.android.HiltAndroidApp

/**
 * @author Lin
 * @date 2021/12/23
 * @function
 */
@HiltAndroidApp
class JetpackApp : Application() {
    override fun onCreate() {
        super.onCreate()
        ProcessLifecycleOwner.get().lifecycle.addObserver(ApplicationLifecycleObserver())
    }
}